﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.CreateNewStadium" Title="" StylesheetTheme="SkinFile" Codebehind="CreateNewStadium.aspx.cs" %>

<asp:Content ID="PageNameContent" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
    <asp:Label ID="PageNameLabel" runat="server" Text="<%$ Resources:Resource, CreateNewStadium_PageNameLabel %>" CssClass="PageNameContentStyle"></asp:Label>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="RedtitleLabel" runat="server" Text="<%$ Resources:Resource, CreateNewStadium_PageNameLabel %>" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <asp:Panel ID="OldStartStadiumPanel" runat="server">
        <asp:Label ID="MessageLabel" runat="server" SkinID="SmallHeaderLabel"></asp:Label>
        <br />
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:Label ID="StadiumNameTitleLabel" runat="server" Text="<%$ Resources:Resource, CreateNewStadium_StadiumNameTitleLabel %>" SkinID="InfoLabel"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="StadiumNameTextBox" runat="server" MaxLength="128" ValidationGroup="CreateNewStadium"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="BasicSeatsTitleLabel" runat="server" Text="<%$ Resources:Resource, Global_BasicSeats %>" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:TextBox ID="BasicSeatsTextBox" ValidationGroup="CreateNewStadium"
                     runat="server" Width="80px"></asp:TextBox>
                </td>
                <td>
                <asp:RegularExpressionValidator  runat="server" ID="RegularExpressionValidator1"  ControlToValidate="BasicSeatsTextBox" ErrorMessage="<%$ Resources:Resource, CreateNewStadium_IlligalValue %>" 
                                        ValidationExpression="^[0-9]{1,6}$"
                                        ValidationGroup="CreateNewStadium"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>  
                    <asp:Label ID="SeatsUnderRoofTitleLabel1" runat="server" Text="<%$ Resources:Resource, CreateNewStadium_SeatsUnderRoofTitleLabel1 %>" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:TextBox ID="SeatsUnderRoofTextBox" ValidationGroup="CreateNewStadium"
                    runat="server" Width="80px"></asp:TextBox></td>
                <td>
                    <asp:RegularExpressionValidator  runat="server" ID="RegularExpressionValidator2"  ControlToValidate="SeatsUnderRoofTextBox" ErrorMessage="<%$ Resources:Resource, CreateNewStadium_IlligalValue %>" 
                    ValidationExpression="^[0-9]{1,6}$"
                    ValidationGroup="CreateNewStadium"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>  
                    <asp:Label ID="SeatsInVIPTitleLabel" runat="server" Text="<%$ Resources:Resource, CreateNewStadium_SeatsInVIPTitleLabel %>" SkinID="InfoLabel"></asp:Label></td>
                <td>
                    <asp:TextBox ID="SeatsInVIPTextBox" ValidationGroup="CreateNewStadium" EnableViewState="true"
                    runat="server" Width="80px"></asp:TextBox></td>
                <td>
                    <asp:RegularExpressionValidator  runat="server" ID="RegularExpressionValidator3"  ControlToValidate="SeatsInVIPTextBox" ErrorMessage="<%$ Resources:Resource, CreateNewStadium_IlligalValue %>"
                                        ValidationExpression="^[0-9]{1,6}$"
                                        ValidationGroup="CreateNewStadium"></asp:RegularExpressionValidator>
                </td>
            </tr>
        </table> 
            <br />
             <asp:Label ID="ShowConstructionCostLabel" runat="server" 
            SkinID="GreenSmallHeaderLabel"></asp:Label>
            <br />
            <asp:Button ID="CalculateNewStadiumCostButton" runat="server" 
            Text="<%$ Resources:Resource, Global_Calculate %>"  ValidationGroup="CreateNewStadium" CssClass="GreyButtonTextStyle"
            onclick="CalculateNewStadiumCostButton_Click" />
        
            <asp:Button ID="BuildButton" runat="server" Text="Build!" 
            message="<%$ Resources:Resource, CreateNewStadium_BuildButtonOnClientClick %>"
            OnClientClick='return confirm(this.getAttribute("message"))'
            Visible = "false" onclick="BuildButton_Click" CssClass="GreenSmallButtonStyle" />
             &nbsp; &nbsp;
            <asp:LinkButton ID="ChangeSeatsValuesHyperLink" runat="server" Visible="false" Text="<%$ Resources:Resource, Global_ChangeSeatsValues %>" SkinID="TitleLink"></asp:LinkButton>
         </asp:Panel>
         <asp:Panel ID="NewStartstadiumPanel" runat="server">
             <asp:Label ID="StartYourStadiumLabel" runat="server" Text="<%$ Resources:Resource, CreateStadium_YouCanStartYourStadiumText %>"
              SkinID="GridLabel"></asp:Label>
             <br /><br />
             <asp:Label ID="NewStadiumNameTitleLabel" runat="server" Text="<%$ Resources:Resource, CreateStadium_StadiumNameTitle %>" SkinID="InfoLabel"></asp:Label>
             <asp:TextBox ID="NewStadiumNameTextBox" runat="server" MaxLength="255" TextMode="SingleLine" Width="300"></asp:TextBox>
             <asp:RequiredFieldValidator ID="StadiumNameTextBoxRequiredFieldValidator1" runat="server" ErrorMessage="***"
              ValidationGroup="new" ControlToValidate="NewStadiumNameTextBox"></asp:RequiredFieldValidator>
             <br /><br />
             <asp:Button runat="server" ID="CreateNewstadiumButton" CausesValidation="true" ValidationGroup="new" OnClick="NewCreateNewstadium"
              Text="<%$ Resources:Resource, Global_Submit %>" CssClass="GreenSmallButtonStyle" />
         </asp:Panel>    
    </div>
    </div>
</asp:Content>

